/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.intelligent.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 智能控制Entity
 * @author xzw
 * @version 2019-04-10
 */
public class IntelligentController extends DataEntity<IntelligentController> {
	
	private static final long serialVersionUID = 1L;

	private String controlStyle;		// 控制方式
	private Date startTime;		// 开始时间
	private Date endTime;		// 结束时间
	private String lightId;    //  指示灯id
	private String status;     //引导灯状态，0红灯，1绿灯
	private String lightName; //指示灯名称
	

	public String getLightName() {
		return lightName;
	}

	public void setLightName(String lightName) {
		this.lightName = lightName;
	}

	public IntelligentController() {
		super();
	}

	public IntelligentController(String id){
		super(id);
	}

	@Length(min=0, max=64, message="控制方式长度必须介于 0 和 64 之间")
	public String getControlStyle() {
		return controlStyle;
	}

	public void setControlStyle(String controlStyle) {
		this.controlStyle = controlStyle;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getLightId() {
		return lightId;
	}

	public void setLightId(String lightId) {
		this.lightId = lightId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
	
}